import {defineStore} from "pinia"
import {ref} from 'vue'

export const useUserStore = defineStore('userStore', () => {
    let userInfo = ref({
        birth: '',
        code: '',
        currentIntegral: 0,
        email: '',
        iconUrl: '',
        joinTime: '',
        lastLoginTime: '',
        level: 1,
        nickName: '',
        password: '',
        personDescription: '',
        sex: '',
        totalIntegral: 0,
        userId: '',
    });
    return {
        userInfo
    }
}, {
    //将store进行持久化
    persist: true
})